/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
//核心数据的路由管理
const baseRouter = {
  path: '/base',
  component: Layout,
  redirect: 'noRedirect',
  name: 'BaseData',
  meta: {title: '基础信息',icon: 'table',roles: ['admin'] },
  children: [
    {
      path: 'Test',
      component: () => import('@/views/basedata/test/test'),
      name: '测试页面',
      meta: { title: '测试页面', noCache: true }
    },
    {
      path: 'UserInfo',
      component: () => import('@/views/basedata/userinfo/userInfo'),
      name: '用户信息',
      meta: { title: '用户信息', noCache: true }
    },
    {
      path: 'Dict',
      component: () => import('@/views/basedata/dictinfo/dictInfo'),
      name: 'Dict',
      meta: { title: '字典信息', noCache: true }
    },
    {
      path: 'DictItem',
      component: () => import('@/views/basedata/dictinfo/dictItemInfo'),
      name: 'DictItemInfo',
      meta: { title: '字典项信息', noCache: true }
    },
  ]
}

export default baseRouter
